Skip to content

Conversation

d3zd3z
Copy link
Collaborator

@d3zd3z d3zd3z commented Dec 5, 2024

Use the Zephyr KConfig CONFIG_DEBUG to determine if the Rust code should be built as release or debug. This will better optimize the code.

Applications can still set options for [profile.release] to enable things such as run time assertions. For example, debug symbols can still be enabled with debug = "full", which attempts to insert debugging information, although the optimizer can still make the code challenging to debug.o

debug-assertions = true, and overflow-checks = true can still be enabled in the release builds, for some additional checks.

Use the Zephyr KConfig `CONFIG_DEBUG` to determine if the Rust code
should be built as release or debug.  This will better optimize the
code.

Applications can still set options for `[profile.release]` to enable
things such as run time assertions.  For example, debug symbols can
still be enabled with `debug = "full"`, which attempts to insert
debugging information, although the optimizer can still make the code
challenging to debug.o

`debug-assertions = true`, and `overflow-checks = true` can still be
enabled in the release builds, for some additional checks.

Signed-off-by: David Brown <[email protected]>
@d3zd3z d3zd3z merged commit ce42e4b into main Dec 5, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants